import {tVisualEditorBindingConfig} from "../../packages/createVisualEditorUser/createVisualEditorBinding/createVisualEditorBindConfig";
import {PickProduct} from "../../components/PickProduct";

export function predefineBindingConfig({ bindingConfig, }: { bindingConfig: tVisualEditorBindingConfig }) {

  bindingConfig.registry({
    name: '绑定商品',
    render: (data) => (
      <PickProduct v-model={data.data.product} onChange={() => data.action = { code: 'bind-product' }}/>
    ),
  });

}
